import org.sportspace.system.utils.SportSpaceInit;
SportSpaceInit.initSystem();

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
    hibernate.connection.SetBigStringTryClob=true
    //show_sql=true
    jdbc.batch_size=30
}

dataSource {
    pooled = true
    dbCreate = "update"
}

def h2DB = System.getProperty('user.home') + "/.sportspace/db/sportspacedb"
dataSource.url = "jdbc:h2:${h2DB.toString().replace("\\", "/")}"